import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    Image,
} from 'react-native';
import {Navigator} from "react-native-deprecated-custom-components"
import FirstPageComponent from './View/Welcome';
export default class App extends Component {

    render() {
        let defaultName = 'FirstPageComponent';
        let defaultComponent = FirstPageComponent;
        return (
            <Navigator
                initialRoute={{
                    name: defaultName,
                    component: defaultComponent }}
                configureScene={() => {
                    return Navigator.SceneConfigs.VerticalDownSwipeJump;
                }}
                renderScene={(route, navigator) => {
                    let Component = route.component;
                    if(route.component) {
                        //这里有个 { ...route.params }
                        return <Component {...route.params} navigator={navigator} />
                    }
                }}
            />
        );
    }
}
const styles = StyleSheet.create({
});
